package com.woniu.project.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniu.project.core.domain.Shop;
import com.woniu.project.dto.shopdto.ShopDto;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniu.project.dto.storedto.StoreDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author WHF
 * @since 2020-10-12
 */
public interface ShopMapper extends BaseMapper<Shop> {

    IPage<ShopDto> pageQueryShopDto(Page<ShopDto> page, @Param("status") String status,@Param("shopParams") String shopParams);

    ShopDto selectOneShop(@Param("shopId") int shopId);

    List<StoreDto> slectStore(@Param("shopId") Integer shopId);
}
